#!/usr/bin/env bash

gradle clean && echo CLEAN_OK

gradle war && echo BUILD_OK

scp ./build/libs/wenwuju.war root@192.168.233.128:/srv/docker/wenwuju

ssh root@192.168.233.128 "rm -rf /srv/docker/wenwuju/web/wenwuju; mv /srv/docker/wenwuju/wenwuju.war /srv/docker/wenwuju/web"  && echo FABU_OK